<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>猫狗日记</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="./static/css/layui.css" rel="stylesheet">
  <link rel="shortcut icon" href="./static/images/favicon.png">
</head>

<body>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo layui-hide-xs layui-bg-black">logo 区域</div>
      <!-- 头部区域（可配合layui 已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
          <i class="layui-icon layui-icon-spread-left"></i>
        </li>
        <li class="layui-nav-item layui-hide-xs"><a href="./index.html">首页</a></li>
        <li class="layui-nav-item layui-hide-xs layui-this"><a href="javascript:;">关于宠物</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="./pet-cats-dogs.html">宠物猫狗</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="./pet-news.html">宠物新闻</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="./buy-pet/index.html">宠物购买</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="./pet-snacks.html">宠物零食</a></li>

      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
          <a href="javascript:;">
            <img src="./static/images/user/avatar.jpeg" class="layui-nav-img">
            纳美
          </a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">个人信息</a></dd>
            <dd><a href="javascript:;">退出</a></dd>
          </dl>
        </li>
      </ul>
    </div>

    <div class="layui-body" style="left: 0;">
      <!-- 内容主体区域 -->
      <!-- <div style="padding: 15px;">
      <blockquote class="layui-elem-quote layui-text">
        Layui 框体布局内容主体区域
      </blockquote>
    </div> -->
    </div>

    <div class="layui-footer" style="text-align: center;left: 0;">
      cat and dog dairy &copy; 2024 created by Wzy
    </div>
  </div>

  <script src=".//cdn.staticfile.org/layui/2.9.10/layui.js"></script>
  <script>
    //侧边固定栏
    layui.use(function () {
      var util = layui.util;
      // 自定义固定条
      util.fixbar({
        bars: [
          {
            // 定义可显示的 bar 列表信息 -- v2.8.0 新增
            type: "share",
            icon: "layui-icon-share",
            style: "background-color: #16b777;",
            content: "分享",
          },
          {
            type: "help",
            icon: "layui-icon-help",
            content: "帮助",
          },
          {
            type: "cart",
            icon: "layui-icon-cart",
            style: "background-color: #FF5722;",
            content: "购物车",
          },
        ],
        on: {
          mouseenter: function (type) {
            const typesMap = {
              share: "分享给朋友",
              help: "帮助",
              cart: "购物车",
            }
            layer.tips(typesMap[type], this, {
              tips: 4,
              fixed: true,
            });
          },
          mouseleave: function (type) {
            layer.closeAll("tips");
          },
        },
        // 点击事件
        click: function (type) {
          console.log(this, type);
          // layer.msg(type);
        },
      });
    });

  </script>
</body>

</html>